package com.jianbing.shasha.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jianbing.common.annotation.Excel;
import com.jianbing.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 【请填写功能名称】对象 shasha_part5_record
 * 
 * @author ruoyi
 * @date 2024-06-16
 */
public class ShashaPart5Record extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long userId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long part5Id;

    /** 回答内容 */
    @Excel(name = "回答内容")
    private String answer;

    /** 1 是回答正确 0是错误 */
    @Excel(name = "1 是回答正确 0是错误")
    private Long correct;

    /** 插入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录插入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date insertTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setPart5Id(Long part5Id) 
    {
        this.part5Id = part5Id;
    }

    public Long getPart5Id() 
    {
        return part5Id;
    }
    public void setAnswer(String answer) 
    {
        this.answer = answer;
    }

    public Date getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(Date insertTime) {
        this.insertTime = insertTime;
    }

    public String getAnswer()
    {
        return answer;
    }
    public void setCorrect(Long correct) 
    {
        this.correct = correct;
    }

    public Long getCorrect() 
    {
        return correct;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("part5Id", getPart5Id())
            .append("answer", getAnswer())
            .append("correct", getCorrect())
            .append("insertTime", getInsertTime())
            .toString();
    }
}
